<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<h:outputStylesheet library="css" name="login-style.css" />
</h:head>

<h:body>
	<h:form>
		<table>
			<tr>
				<td><h:outputText value="Username:" /></td>
				<td><h:inputText id="usernameInput" value="#{loginBean.username}" /></td>
				<td><h:outputLabel for="usernameInput" value="output"/></td>
				<td><h:message for="usernameInput"	value="Грешка" /></td>
			</tr>
			<tr>
				<td><h:outputText value="Password:" /></td>
				<td><h:inputSecret  value="#{loginBean.password}" /></td>
			</tr>
			<tr>
				<td><h:commandButton value="Login" actionListener="#{loginBean.login}"/></td>
			</tr>
		</table>

	</h:form>

</h:body>

</html>